GtkImage: Always close the loader
authorMatthias Clasen <mclasen@redhat.com>
Wed, 30 Jul 2014 22:12:30 +0000 (00:12 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 30 Jul 2014 22:12:30 +0000 (00:12 +0200)
This was causing some tests to fail with a critical.

gtk/gtkimage.c

index 98c969eb3f11dab1c8112eb0514c76991853ac07..80b514d98f3236a2d499f3329d403de27d8e2e47 100644 (file)
@@ -900,6 +900,7 @@ load_scalable_with_loader (GtkImage    *image,
     }
 
  out:
+  gdk_pixbuf_loader_close (loader, NULL);
   g_object_unref (loader);
   g_bytes_unref (bytes);